module.exports = {
    publicPath: './',
    devServer: {
        disableHostCheck: true,
        open: true,
        host: '0.0.0.0',
        port: 8080,
        proxy: {
            '/letter-api': {
                target: 'http://localhost:7772',
                changeOrigin: true,
                pathRewrite: {
                    "^/letter-api": ''
                }
            }
        }
    },
    configureWebpack: {
        module: {
            rules: [
                {
                    test: /\.mjs$/,
                    include: /node_modules/,
                    type: "javascript/auto"
                },
            ]
        }
    }
}